import request from "@/utils/request";

// 查询商品分类列表
export function productCateList(query) {
  return request({
    url: "/productCate/page",
    method: "get",
    params: query,
  });
}

// 新增商品分类
export function insertCate(data) {
  return request({
    url: "/productCate/insert",
    method: "post",
    data: data,
  });
}

// 查询分类详细
export function detailCate(id) {
  return request({
    url: "/productCate/detail/" + id,
    method: "get",
  });
}

// 修改分类
export function modifyCate(data) {
  return request({
    url: "/productCate/modify",
    method: "put",
    data: data,
  });
}

// 删除分类
export function delCate(id) {
  return request({
    url: "/productCate/del/" + id,
    method: "delete",
  });
}
